import request from '@/utils/request'

export function getSubscribeListFn(date) {
  return request({
    url: '/subscribe/list',
    method: 'GET',
    params: date
  })
}

export function selectlistFn(sername){
  return request({
    url: '/subscribe/list',
    method: 'GET',
    params: {sername}
  })
}

export function addSubscribeListFn(data) {
  return request({
    url: '/subscribe/add',
    method: 'POST',
    data: data
  })
}

export function updateSubscribeListFn(data) {
  return request({
    url: '/subscribe/app',
    method: 'POST',
    data: data
  })
}

export function deleteSubscribeListFn(id) {
  return request({
    url: '/subscribe/del?id=' + id,
    method:'GET'
  })
}

